package com.woniuxy.ssm.service.impl;

import com.woniuxy.ssm.bean.DeptBean;
import com.woniuxy.ssm.mapper.DeptMapper;
import com.woniuxy.ssm.service.IDeptService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author linke
 * @version 1.0
 * @className: DeptServiceImpl
 * @description: 部门接口实现类
 * @date 2021/11/15 1:24
 */
@Transactional(readOnly = true)
@Service
public class DeptServiceImpl implements IDeptService {
    @Resource
    private DeptMapper deptMapper;

    @Override
    public List<DeptBean> findAll() {
        return deptMapper.findAll();
    }
}
